package com.tc.config;

import com.tc.factory.ResultFactory;
import com.tc.factory.impl.ResultFactoryImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ResultFactoryConfig {

    @Bean
    //把封装好的Result交给ioc
    public ResultFactory factoryCreateResult(){
        return new ResultFactoryImpl();
    }
}
